Exchange API icon

Exchange API

(3 reviews)

API Notebooks

You can use a notebook to test all the Exchange API v2 endpoints. Use a client to make requests and see example responses. Explore the API and learn how it works and how to use it.

This client is an example provided by Exchange that does not require credentials. If you choose to use your credentials, use client authentication.

1. Create a Client for Exchange API v2

Create a notebook client where you can execute sample code to test and explore the API:

2. Optionally Authenticate the Client

Note: This step is optional. Some endpoints do not require authentication.

The Exchange API v2 uses OAuth 2.0 to enable secure access to the resource.

Obtain an access token:

3. Invoke the API

This scenario shows the most basic flow, which obtains an asset response from the API.

Then the name of the asset is obtained from the response.

Then another code snippet obtains the labels of the asset.

Use your OAuth token to invoke the API.

4. Continue using the API

To continue using the API, create new API Notebooks like this, where new methods can be created or executed.

For example, this notebook makes a request to search assets by the search term Exchange and the type rest-api in the domain of anypoint-platform:


Reviews

DU
Deleted UserApr 4, 2023, 10:15 PM
Relative URLs to other pages
How can we add relative URLs on the Home page that go to other pages of the API specifications that work on both Exchange and Developer Portal? For example, I'd like to add a link to the Summary page. I tried to use ../../console/summary, but it would fail if I click on this without clicking on Home first. In Dev Portal: first time clicking on asset arrives at: https://anypoint.mulesoft.com/exchange/portals/:organizationId/:groupId/:assetId/ clicking on Home: https://anypoint.mulesoft.com/exchange/portals/:organizationId/:groupId/:assetId/minor/1.0/pages/home/ Summary page: https://anypoint.mulesoft.com/exchange/portals/:organizationId/:groupId/:assetId/minor/1.0/console/summary/ similarly in Exchange https://anypoint.mulesoft.com/exchange/:groupId/:assetId/minor/1.0/ https://anypoint.mulesoft.com/exchange/:groupId/:assetId/minor/1.0/pages/home/ https://anypoint.mulesoft.com/exchange/:groupId/:assetId/minor/1.0/console/summary/
DU
Deleted UserAug 15, 2022, 3:41 PM
Categories API Documentation
https://anypoint.mulesoft.com/exchange/api/v2/organizations/{organizationId}/categories example provided in documentation is not correct, it returns 400 bad request with following. { "status": 400, "message": "Must provide acceptedValues for an enum dataType", "details": {} } the correct example could be { "displayName": "Medical Discipline", "acceptedValues": [ "Salesforce" ], "assetTypeRestrictions": ["custom"] }
DU
Deleted UserOct 25, 2021, 12:32 PM
Useful API Documentation
THanks for documenting this , really useful!